package sun.superstring.object;

public class Student {
    String name;
    String gender;
    double chinese;
    double math;

    public void printAllScore(){
        System.out.println(name + "的总成绩是：" +
                (chinese + math));
    }
    public void printAverageScore(){
        System.out.println(name + "的平均成绩是：" +
                (chinese + math) / 2);
    }
}
